/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 直播域名配置类接口
 * Openapi For JCLOUD cdn
 *
 * OpenAPI spec version: v1
 * Contact: pid-cdn@jd.com
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;
using JDCloudSDK.Core.Service;

using JDCloudSDK.Cdn.Model;
using JDCloudSDK.Core.Annotation;

namespace  JDCloudSDK.Cdn.Apis
{

    /// <summary>
    ///  设置转协议
    /// </summary>
    public class SetProtocolConvertRequest : JdcloudRequest
    {
        ///<summary>
        /// https证书,转https格式时必传
        ///</summary>
        public   string Certificate{ get; set; }
        ///<summary>
        /// https私钥，转https格式时必传
        ///</summary>
        public   string RsaKey{ get; set; }
        ///<summary>
        /// 证书来源有两种类型：default,ssl
        ///</summary>
        public   string CertFrom{ get; set; }
        ///<summary>
        /// ssl证书id
        ///</summary>
        public   string SslCertId{ get; set; }
        ///<summary>
        /// 是否同步到ssl,boolean值，取值true或者false
        ///</summary>
        public   bool SyncToSsl{ get; set; }
        ///<summary>
        /// syncToSsl是true时，certName是必填项
        ///</summary>
        public   string CertName{ get; set; }
        ///<summary>
        /// ProtocolConverts
        ///</summary>
        public List<ProtocolConvert> ProtocolConverts{ get; set; }

        ///<summary>
        /// 用户域名
        ///Required:true
        ///</summary>
        [Required]
        public   string Domain{ get; set; }
    }
}